import { Utility } from "@/libs/utility";

export const sampleInformationForm = [
  {
    fieldName: "id",
    fieldCNName: "",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "",
    span: 2,
  },
  {
    fieldName: "expId",
    fieldCNName: "",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "",
    span: 2,
  },
  {
    /** 字段名，如：name */
    fieldName: "periodNo",
    /** 字段对应的中文解释，如：姓名 */
    fieldCNName: "周期号",
    /** 字段的值，如：张三 */
    filedValue: 1,
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "select",
    rules: {
      required: true, // 只有为true的时候才写，为false这个字段不要
    },
    span: 2,
    itemList: Utility.getCurrentPeriod(),
  },
  {
    fieldName: "drugSeq",
    fieldCNName: "给药序号",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
    rules: {
      required: true, // 只有为true的时候才写，为false这个字段不要
    },
    span: 2,
  },
  {
    fieldName: "baseDrugTime",
    fieldCNName: "基于给药时间",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "date",
    rules: {
      required: true, // 只有为true的时候才写，为false这个字段不要
    },
    span: 2,
  },
  {
    fieldName: "timePoint",
    fieldCNName: "时间点",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "datetime",
    rules: {
      required: true, // 只有为true的时候才写，为false这个字段不要
    },
    span: 2,
  },
  {
    fieldName: "oppositeDay",
    fieldCNName: "相对天数",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputNumber",
    span: 2,
  },
  {
    fieldName: "oppositeTime",
    fieldCNName: "相对时间",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "datetime",
    span: 2,
  },
  {
    // 这里应该是选择的，后面再确认
    fieldName: "ttwSizeof",
    fieldCNName: "时间窗运算符",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
    span: 2,
  },
  {
    fieldName: "ttwValue",
    fieldCNName: "时间窗值",
    filedValue: "",
    span: 2,
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputNumber",
  },
  {
    fieldName: "ttwUnit",
    fieldCNName: "时间窗单位",
    span: 2,
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
  },
  {
    fieldName: "correctPlan",
    fieldCNName: "是否矫正计划时间",
    span: 2,
    filedValue: false,
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "switch",
  },
  {
    fieldName: "remarks",
    fieldCNName: "样品采集点描述",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "textarea",
  },

  {
    fieldName: "collectCondition",
    fieldCNName: "采样条件",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "textarea",
  },
];
